/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.AdditionalInfoFacade;
import org.ipti.br.tag.entity.AdditionalInfo;
import java.io.Serializable;
import java.util.Calendar;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class AdditionalInfoBO implements Serializable {

    @Inject
    private AdditionalInfoFacade additionalInfoDAO;

    public AdditionalInfoFacade getAdditionalInfoDAO() {
        return additionalInfoDAO;
    }

    public void create(AdditionalInfo additionalInfo) {
        getAdditionalInfoDAO().create(additionalInfo);
    }

    public void edit(AdditionalInfo additionalInfo) {
        getAdditionalInfoDAO().edit(additionalInfo);
    }

    public void remove(AdditionalInfo additionalInfo) {
        getAdditionalInfoDAO().remove(additionalInfo);
    }

    public AdditionalInfo find(Object id) {
        return getAdditionalInfoDAO().find(id);
    }

    public List<AdditionalInfo> findAll() {
        return getAdditionalInfoDAO().findAll();
    }

    public List<AdditionalInfo> findAddInfosPerPerson(Long personID) {
        return getAdditionalInfoDAO().findAddInfosPerPerson(personID);
    }

    public List<AdditionalInfo> modifiedAddInfoBetweenDate(Calendar initialDate, Calendar finalDate, Long serialNumber) {
        return getAdditionalInfoDAO().modifiedAddInfoBetweenDate(initialDate, finalDate, serialNumber);
    }
}
